import request from '@/utils/request'

export function createAward(data){
    return request({
        url:'/award/addAward',
        method:'post',
        data:data
    })
}

export function updateAward(data){
    return request({
        url:'/award/updateAward',
        method:'post',
        data:data
    })
}

export function deleteAward(data){
    return request({
        url:'/award/deleteAward',
        method:'post',
        data:data
    })
}

export function findAwardTableTemplate(){
    return request({
        url:'/award/selectAwardTemplate',
        method:'post',
    })
}

export function findAwardList(data){
    return request({
        url:'/award/selectAward',
        method:'post',
        data:data
    })
}

export function findAwardTableList(data){
    return request({
        url:'/award/selectAwardDeclare',
        method:'post',
        data:data
    })
}

export function findAwardOne(data){
    return request({
        url:'/award/selectOneAward',
        method:'post',
        data:data
    })
}

export function findAwardDeclareOne(data){
    return request({
        url:'/award/selectOneAwardDeclare',
        method:'post',
        data:data
    })
}

export function findMyDeclareList(data){
    return request({
        url:'/award/selectMyAward',
        method:'post',
        data:data
    })
}

export function updateAwardDeclare(data){
    return request({
        url:'/award/updateAwardDeclare',
        method:'post',
        data:data
    })
}

//奖项审核
export function auditAwardDeclare(data){
    return request({
        url:'/award/awardApproval',
        method:'post',
        data:data
    })
}

//奖项审核list
export function auditAwardDeclareList(data){
    return request({
        url:'/award//awardApprovalList',
        method:'post',
        data:data
    })
}
